package com.mc.lp.database.entity;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 
 * @author deepak
 *
 */
@Cacheable
@Cache(usage=CacheConcurrencyStrategy.READ_ONLY)
@Entity
@Table(name="COMPETITIVE_PROGRAME")
public class CompetitiveExamEntity extends MicroCampusBaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Column(name="PROGRAME_NAME")
	private String ProgrameName;
	
	@OneToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="TYPE_ID")
	private CompetitiveExamTypeEntity competitiveExampType;
	
	public String getProgrameName() {
		return ProgrameName;
	}
	public void setProgrameName(String programeName) {
		ProgrameName = programeName;
	}
	public CompetitiveExamTypeEntity getCompetitiveExampType() {
		return competitiveExampType;
	}
	public void setCompetitiveExampType(CompetitiveExamTypeEntity competitiveExampType) {
		this.competitiveExampType = competitiveExampType;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
}
